added the duplicate images assignment