Updated the check for duplicate photos.