Added debug function to check for duplicate images