update ImageFactoryFromHDF5 for nD version