public function getImage()
 {
     if ($this->xmlrpc) {
         try {
             $data = $this->captcha->getImage($this->getHash());
             $im = imagecreatefromstring($data);
             $img = new NImage($im);
         } catch (Exception $e) {
             $img = NImage::fromBlank(200, 25, NImage::rgb(255, 255, 255));
             $img->imagestring($img, 3, 0, 0, "Nepodarilo se ziskat obrazek", 1);
             $this->addError($e->__toString());
         }
         //$img->send(NImage::GIF);
         return (string) $img;
     } else {
         return $this->image;
     }
 }