Fix flickr queries
Ignore flickr images that we can't download
Fix memory leaks