Loading next photo in the background while view the current photo

Is there a way that when you are viewing a photo in the Photo Slide Show using XML > http://www.kirupa.com/developer/mx2004/xml_slideshow.htm

The next photo in the slide show downloading, and once it has it than triggers to display the photo instead of having the preload bar?

Another cool feature > I created the xml to be dynamic based on the photos within a directory, some slideshows might one have 1 image in the direcotry. Is there away to stop the slideshow if this only one image, and only play the slideshow if there is more than 1 image?