title: PHPexcel group rows with images
body: <p>I need to collapse the rows with images using PHPExcel.</p>
  
  <p><strong>grouped</strong>:
  <a href="http://imgur.com/nO6m9lf,6zRcFa5" rel="nofollow">http://imgur.com/nO6m9lf,6zRcFa5</a></p>
  
  <p><strong>collapse rows without images</strong>:
  <a href="http://imgur.com/nO6m9lf,6zRcFa5#1" rel="nofollow">http://imgur.com/nO6m9lf,6zRcFa5#1</a></p>
  
  <p>Now images are displayed as follows:</p>
  
  <pre><code>$objDrawing = new PHPExcel_Worksheet_MemoryDrawing();
  $objDrawing-&gt;setName($element["product_code"]);
  $objDrawing-&gt;setDescription($element["product_code"]);
  $objDrawing-&gt;setImageResource($gdImage);
  $objDrawing-&gt;setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG);
  $objDrawing-&gt;setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_DEFAULT);
  $objDrawing-&gt;setHeight(150);
  $objDrawing-&gt;setCoordinates('B'.$n);
  $objDrawing-&gt;setWorksheet($objPHPExcel-&gt;getActiveSheet());
  $objPHPExcel-&gt;getActiveSheet()-&gt;getHeaderFooter()-    &gt;addImage($objDrawing,PHPExcel_Worksheet_HeaderFooter::IMAGE_HEADER_LEFT);
  $objPHPExcel-&gt;getActiveSheet()-&gt;getRowDimension($n)-&gt;setRowHeight(113);
  $objPHPExcel-&gt;getActiveSheet()-&gt;getRowDimension($n)-&gt;setOutlineLevel(1);
  $objPHPExcel-&gt;getActiveSheet()-&gt;getRowDimension($n)-&gt;setCollapsed(true);
  </code></pre>
  
  <p>How to collapse rows with images using PHPExcel?</p>