Writing image stack with HDF5

The HDF5 format can be used for almost anything, including image stacks. To signal graphical interactive HDF5 viewers that a dataset is an image stack, add HDF5 image metadata, as in these Python and Matlab examples. HDFview will show an optional video player for this dataset due to the image metadata added.