Fixed most of the things that are wrong with LineDetector, still need to address the angle of the line passing through the image