Refactors generate_photo_url to be more readable.
should consider removing the !s