added center nii function to set nii center to midpoint