Changed the downloadImages file. Now it is working without any problems. Added the uploadImages file. This file will upload images to Flickr