initial code to interact with Flickr API