Convert image and segmentation to DICOM