Flickr image API is now working + Script refactoring