return homography matrix as well