remove duplicate gallerySpace variable definition
refactoring replace replayAll with replayDefaults and verifyAll with
verifyDefaults
add addSlidesFromTemplate
add generateImageSlides