updates to image_match to efficiency

PR for updates to image_match