Fixed bugs in elliptical ring fitting caused by not taking into account
the changing angles of the fitting points in each ellipse, and removed
old code