Finding nearest point on lines, but not beziers, and remove should be of points not lines