Fixed a potential bug in image cutouts
Fix for ellipse drawing when axes are swapped