def enhance(self, iea: str) -> Image:
    new_pixels = {}
    (min_x, min_y, max_x, max_y) = self.bounds()
    for x in range((min_x - 2), (max_x + 2)):
        for y in range((min_y - 2), (max_y + 2)):
            new_pixels[(x, y)] = self.enhance_pixel(iea, (x, y))
    void_pixel = iea[self.pixel2idx((self.void_pixel * 9))]
    return Image(new_pixels, void_pixel)
def enhance(self, iea: str) -> Image:
    new_pixels = {}
    (min_x, min_y, max_x, max_y) = self.bounds()
    for x in range((min_x - 2), (max_x + 2)):
        for y in range((min_y - 2), (max_y + 2)):
            new_pixels[(x, y)] = self.enhance_pixel(iea, (x, y))
    void_pixel = iea[self.pixel2idx((self.void_pixel * 9))]
    return Image(new_pixels, void_pixel)