/** * Send View to output */ public function draw() { if (!$this->_file == null) { // Set headers // PHP must return an image instead of a html header("Content-type: " . $this->_file->type()); // Tell the browser the image size header("Content-Length: " . $this->_file->size()); $this->_file->output(); } }