public static function getThumbnailUrl($widgetId = null, $entryId = null, $width = 240, $height = 180, $version = 100000)
 {
     $config = KalturaHelpers::getKalturaConfiguration();
     $url = KalturaHelpers::getCdnUrl();
     $url .= "/p/" . KalturaHelpers::getOption("kaltura_partner_id");
     $url .= "/sp/" . KalturaHelpers::getOption("kaltura_partner_id") * 100;
     $url .= "/thumbnail";
     if ($widgetId) {
         $url .= "/widget_id/" . $widgetId;
     }
     if ($entryId) {
         $url .= "/entry_id/" . $entryId;
     }
     $url .= "/width/" . $width;
     $url .= "/height/" . $height;
     $url .= "/type/2";
     $url .= "/bgcolor/000000";
     if ($version !== null) {
         $url .= "/version/" . $version;
     }
     return $url;
 }