Fixed a bunch of issues that were keeping the slideshow from running past about 20 minutes. Mostly, a memory leak.