/**
  * Get URL of YouTube video screenshot
  *
  * This method returns URL of YouTube video screenshot. It can get one of three screenshots defined by YouTube
  *
  * @access public
  * @param string $url YouTube video URL. If this cannot be parsed it will be used as video ID. It can be omitted
  * @param integer $imgid Number of screenshot to be returned. It can be 1, 2 or 3
  * @return string URL of YouTube video screenshot
  */
 public function GetImgURL($url = null, $imgid = 1)
 {
     if ($url == null) {
         $videoid = $this->id;
     } else {
         $videoid = YouTube::parseURL($url);
         if (!$videoid) {
             $videoid = $url;
         }
     }
     return "http://img.youtube.com/vi/{$videoid}/{$imgid}.jpg";
 }