code: private function writeLegacyDrawingHF(XMLWriter $objWriter, PhpspreadsheetWorksheet $pSheet)
      {
          // If sheet contains images, add the relationships
          if (count($pSheet->getHeaderFooter()->getImages()) > 0) {
              $objWriter->startElement('legacyDrawingHF');
              $objWriter->writeAttribute('r:id', 'rId_headerfooter_vml1');
              $objWriter->endElement();
          }
      }
docs: Write LegacyDrawingHF.
  
  @param XMLWriter $objWriter XML Writer
  @param PhpspreadsheetWorksheet $pSheet Worksheet