Adding possibility to remove invisible lines and patches from relim