title: Pyrocms front end controller - can't output image to the browser
body: <p>here is the code code below</p>
  
  <pre><code>class Home extends Public_Controller
  {
      /**
       * Constructor method
       *`enter code here`
       * @author PyroCMS Dev Team
       * @access public
       * @return void
       */
      public function __construct()
      {
          parent::__construct();  
      }
  
  
  public function testimg(){
      header("Content-type: image/png");
      $image = imagecreatetruecolor(200, 200);
      imagepng($image);     
  }
  }
  </code></pre>
  
  <p>but when i call this controller like (http://localhost/sitename/home/testimg).
  i got the error below</p>
  
  <p>The image "http://localhost/sitename/home/testimg" cannot be displayed because it contains errors.</p>
  
  <p>Kindly help me with this issue i am new to pyrocms.</p>