runs on hdf5 images