Fixed `get_pet_photos()` when retriving just one photo

Replaced `break` with `break 2` to properly break the if statement
after the first matching photo for single photo retrieval.