Fixed problem of saving DICOM files from edit properly.

Fixed problem where edits were being corrupted by anonymization used in
viewing.