def update_dicom_image
      # General image attributes:
      @dcm.add_element(IMAGE_DATE, @date)
      @dcm.add_element(IMAGE_TIME, @time)
      @dcm.add_element(SOP_UID, @uid)
      @dcm.add_element(COLUMNS, @columns)
      @dcm.add_element(ROWS, @rows)
      # Pixel data:
      @dcm.pixels = @narray
      # Higher level tags (patient, study, frame, series):
      # (Groups 0008, 0010 & 0020)
      @series.add_attributes_to_dcm(dcm)
    end
def update_dicom_image
      # General image attributes:
      @dcm.add_element(IMAGE_DATE, @date)
      @dcm.add_element(IMAGE_TIME, @time)
      @dcm.add_element(SOP_UID, @uid)
      @dcm.add_element(COLUMNS, @columns)
      @dcm.add_element(ROWS, @rows)
      # Pixel data:
      @dcm.pixels = @narray
      # Higher level tags (patient, study, frame, series):
      # (Groups 0008, 0010 & 0020)
      @series.add_attributes_to_dcm(dcm)
    end
Creates a new DICOM object with a set of basic attributes needed
 for a valid DICOM file of slice type image modality.