def draw_rectangle(image=None, coordinates=None,
        size=None, color=None):
    """
    Generate a rectangle on a given image canvas at the given coordinates

    :param image: Pillow/PIL Image Canvas
    :param coordinates: coordinate pair that will be the center of the rectangle
    :param size: tuple with the x and y sizes of the rectangle
    :param color: color of the rectangle 
    :returns: image rectangle return or False
    :raises TypeError: none
    """
    if image \
        and coordinates \
        and size \
        and color:
        corner0 = (coordinates[0] - size[0] // 2, coordinates[1] - size[1] // 2)
        corner1 = (coordinates[0] + size[0] // 2, coordinates[1] + size[1] // 2)
        box_paint = [corner0, corner1]
            # print('road box_coords: ', box_paint)
            # pprint(box_paint)
        drawn_rectangle = image.rectangle(box_paint, fill=color, outline=color)
        return drawn_rectangle
    else:
        return False