fixes to affine rectification and an image entropy process