ENH: replaced dicom series writer with 2D writer which can preserve image attributes