finished progress bar for import_images.py, although the code could do with cleaning up and commenting