Check for duplicate images