witching images is no different from opening them; just call the openDzi() method. If you don't want to show any image, you can call the close() method, but this is not required.
When you add in a way for the user to choose the image (like we've done below), you're more than halfway to building your own image gallery.