Moved some global variables around in image_downloader.py for better style