quick and dirty first stab at detecting lines