Refactored parsing of images; implemented ProgressBar