added caching to flickr requests