Implemented an algorithm that will thin any lines in the image. Also made
some changes in detectCorners() and lineDetection() methods with their
return types.