Changed the line finding of cut to give midpoint and not return point from RANSAC.