fix DicomWriteOptions not being saved in DicomWriter constructor