Fixes flickr API and template function