flickr api optimized