generate photo url