def point_is_valid(point, dimensions):
    """Returns True if the coordinates of the point are within the bounds
       of the image, False otherwise. Parameter dimensions is a tuple
       (image_width, image_height)."""
    if point[0] >= 0 and point[1] >= 0 and point[0] < dimensions[0] and point[1
        ] < dimensions[1]:
        return True
    else:
        return False
