handled change in dimensions between nifti and nibabel packages