def draw_rectangle(draw, coordinates, color, width=1, fill=30):
    """Draw a rectangle with an optional width."""
    fill = color + (fill,)
    outline = color + (255,)
    for i in range(width):
        coords = [coordinates[0] - i, coordinates[1] - i, coordinates[2] +
            i, coordinates[3] + i]
        if i == 0:
            draw.rectangle(coords, fill=fill, outline=outline)
        else:
            draw.rectangle(coords, outline=outline)
