Added the ability to  pass a list of files (as opposed to just a directory) to the gallery and slideshow.