/**
  *
  * @param string $title        	
  * @param string $description        	
  * @param string $locationxy        	
  */
 protected function screenshot($title = 'tytuł', $description = 'opis', $locationxy = null)
 {
     $imgFilename = ++$this->i . '_' . date('YmdHis') . '.png';
     $imgFilePath = DocumentTemplate::getDocDir() . $imgFilename;
     if ($this instanceof PHPUnit_Extensions_Selenium2TestCase) {
         $fp = fopen($imgFilePath, 'wb');
         fwrite($fp, $this->currentScreenshot());
         fclose($fp);
         if ($locationxy != null) {
             self::drawPointer($imgFilePath, $locationxy);
         }
     }
     self::$doc->addImg($imgFilePath, $title, $description);
     sleep(self::$sleep);
 }