Here is an old post on old post on uncropping a photo. It would also work to fix photos that have had tilt shift done. But I agree, for your example, could just draw a box and then project texture manually, and skew as necessary.
http://sketchucation.com/forums/viewtopic.php?f=15&t=10895