toLPS for nifti file