added sample code for adding lots of images.