Fixed homography calculation.