Refactor DicomUtil class