title: Generated picture in mpdf
body: <p>I have generated <code>barcode</code> using <code>zend barcode</code> and out it in a <code>kohana 3.3.1 controller</code> and it looks like this.</p>
  
  <pre><code>&lt;?php defined('SYSPATH') or die('No direct script access.');
  
  class Controller_Barcode extends Controller_Base {
  
  public function after()
  {
      $this-&gt;response-&gt;headers('Content-Type','image/gif');
      parent::after();
  }
  
  public function action_Letter()
  {
      Helper_Barcode::generate_barcode(Enum_Post::LETTER);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>It works great on view sites but when I'm using it in <code>mpdf view</code> like:</p>
  
  <pre><code>&lt;div&gt;&lt;img src="/Barcode/Letter"&gt;&lt;/div&gt;   
  </code></pre>
  
  <p>It gives me error: </p>
  
  <pre><code>mPDF error: IMAGE Error (/Barcode/Letter): Error parsing image file - image type not recognised, and not supported by GD imagecreate
  </code></pre>
  
  <p>Anyone know what may be wrong?</p>