More robust ellipse fitting and fixed major axis plotting.