def draw_rectangle(self, x, y, width, height):
    try:
        draw_image = ImageDraw.Draw(self.image)
    except IOError:
        draw_image = ImageDraw.Draw(self.image)
    draw_image.rectangle([x, y, (x + width), (y + height)])
    del draw_image
def draw_rectangle(self, x, y, width, height):
    try:
        draw_image = ImageDraw.Draw(self.image)
    except IOError:
        draw_image = ImageDraw.Draw(self.image)
    draw_image.rectangle([x, y, (x + width), (y + height)])
    del draw_image