wrote more for the progress bar in import_images.py