Fix z position
Fix stitching of unrectangular images.