Define equality for photo models.