code: def _writeImage(dataArray=None, inputHeader=None):
      
      prihdu = fits.PrimaryHDU(data=dataArray, header=inputHeader)
      pf = fits.HDUList()
      pf.append(prihdu)
      return pf
docs: Writes out the result of the combination step.
          The header of the first 'outsingle' file in the
          association parlist is used as the header of the
          new image.
  
          Parameters
          ----------
          dataArray : arr
              Array of data to be written to a fits.PrimaryHDU object
  
          inputHeader : obj
              fits.header.Header object to use as basis for the PrimaryHDU header