Change point detect function return val

Removed the imwrite functionality and changed the return value of
generateLineDetectImage()