update ImageFactoryFromHDF5 for nD version
update ImageFactoryFromHDF5 for nD version