Corrected an issue when saving images from multiple sources