another possiblity is to make getContactDetails not generate a photoURL at all, with adding a new argument. as you wish :)