Update DetectLines.m

Necessary changes for incorporating imgeditclean.