generates photo URLs