fix bug in ImageFactoryFromHDF5