implementing dicom parsing