updates to image_match to efficiency