refactored dcm2nii to be independent program