more work on progress bar for import_images.py