another script for batch processing of old images