added MAX_POINT_ACCURACY constant to cap number of segments used when
drawing an ellipse