made improvements on localization, homography working again