Performance improvement on writing DICOM objects

Hi Christoffer,

attached is a performance improvement on writing DICOM objects by avoiding to copy the remaining object on each chunk. It was developed by Bernd Melcher, a colleague of mine, who asked be to push this.

Best regards, Felix