finished flickr api integration