finished flickr and instagram api