Code for cache and show photos from Flickr