Further refinements to slideshow operations

A slight refactoring of the code
Updated merge-tiffs

This script is customized for a particular application at the Advanced
Photon Source, but can be used to guide the formation of similar
command-line scripts.