modified get_images.py