Updated to play nice with non-conformal DICOM files

Had a problem with DICOM files missing transfer syntax UID on rewrite.
Patched.