corrects ellipse orientation