implemented different modes, homography calculation kinda works but is offset