Refactor images_overlap?