Added nifti pair support, fixed nii.gz overwrite bug