javascript function to load images in carousel from Flickr