fix FS#1073 - Duplicate images with same path not saved