Altered prepare_images.py - only handle jpg-files