Switch to https for Flickr, better error catching