Exporting DICOM directory after segmenting lesion