basic homography code working