added dicom writer.
bug fix for Dicom tag value length