Adding check on image.name in get_images()