WIP: Save SpatialImages into HDF5 files.
Using a "with" statement to open the hdf files.
To access the dataset values ".values" is old, changed to [()].