finished flickr integration