/**
  * Create the screenshot of the webpage url
  *
  * Use the wkhtmltoimage tool to create the PNG image
  * If the screenshot has been created, create a thumbnail and calculate the new dir size.
  *
  * @param boolean $verbose wether this method should verbose messages
  *
  * @return void
  */
 public function captureFromUrl($verbose)
 {
     if (!$this->id || $this->error || !$this->hash || $this->is_binary) {
         return false;
     }
     $options = get_option('HerissonOptions');
     if (!$options['spiderOptionScreenshot']) {
         return false;
     }
     // return false if screenshot already exists
     if ($this->hasImage()) {
         return false;
     }
     $image = $this->getImage();
     $screenshotTool = WpHerissonScreenshotsTable::get($options['screenshotTool']);
     call_user_func($screenshotTool->fonction, $this->url, $image);
     if (file_exists($image) && filesize($image)) {
         herisson_screenshots_thumb($image, $this->getThumb());
         $this->content_image = $image;
         $this->calculateDirSize();
     } else {
         $this->content_image = null;
     }
     $this->save();
 }