3D Manipulation of Objects in Photographs