improvements to staffline removal

now works better on degraded staff lines