Improved the python image processor to make batch processing easier