add photo usage and prevent infinity loop in photo (inside pet photo, inside photo same pet, inside this pet same photo and ... to infinity)