Added functions to transform an image and find vanishing points.