Added code to not feature-find on edges of image if severe distortion detected