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
You need to do every side of the frame as a "Box" and then group it together.
To set the state to "Box" rightclick on the Group --> SketchyPhysics --> Shape --> Box.
simple_bug.skp
That is your file but the frames to left is created by several "box"-groups.
Hope you understand!