match the photo url correctly