title: Image in PDF generating via PHPExcel+TCPDF
body: <p>I am generating a pdf through PHPExcel and TCPDF. I have set an image on the file. The file downloads successfully, but fails to load. </p>
  
  <p>The file is working perfectly without the image part of the code.</p>
  
  <pre><code>$test = (realpath($_SERVER["DOCUMENT_ROOT"]).'/TA2017/application/images/logo.png');
  $objDrawing = new PHPExcel_Worksheet_Drawing();
  $objDrawing-&gt;setName('Logo');
  $objDrawing-&gt;setDescription('Logo');
  $objDrawing-&gt;setPath($test);
  $objDrawing-&gt;setCoordinates('A1');
  $objDrawing-&gt;setWorksheet($objPHPExcel-&gt;getActiveSheet());
  </code></pre>
  
  <p>I have tried with APPPATH and base_url also.</p>
  
  <p>After opening in notepad I got this </p>
  
  <p>Message:  </p>
  
  <pre><code>    imagecreatefrompng(./home/polymer/public_html/TA2017/includes/images/logo.png): failed to open stream: No such file or directory
  </code></pre>
  
  <p>Filename: tcpdf/tcpdf.php</p>