Fixed bugs with image_select_ellipse and rectangle.