Caching photo urls working in the ugliest way possible