added thin_to_lines code. Seems to work okay, but need to tweak gains to...

... get a better lines image