fixed infinite z-values (resulting in float errors); allow for non-nifti outputs of mdmr to be saved