public function display()
    {
        $imageType = $this->getImageType();

        header('Content-type: image/' . $imageType);

        $imageFunc = 'image' . $imageType;
        $imageFunc($this->image);

        $this->destroy($this->image);

        return $this;
    }
public function display()
    {
        $imageType = $this->getImageType();

        header('Content-type: image/' . $imageType);

        $imageFunc = 'image' . $imageType;
        $imageFunc($this->image);

        $this->destroy($this->image);

        return $this;
    }
public function display ( ) { $ imageType = $ this -> getImageType ( ) ; header ( 'Content-type: image/' . $ imageType ) ; $ imageFunc = 'image' . $ imageType ; $ imageFunc ( $ this -> image ) ; $ this -> destroy ( $ this -> image ) ; return $ this ; }
Display captcha image in page

@return $this
Display captcha image in page