Put URL resolving code in it’s own function, fixed resolving for implied photo and URL