added feature that applies affine to .nii file