improper variable reference fixed in export_dicom. line 535.