Fix bugs with Flickr, new API handler