cleanup of flickr api call