Added inlier threshold to reject wrongly fitted images