def kaltura_thumbnail(entry_id,options={})
      options[:size] ||= []
      size_parameters = ""
      seconds_parameter = ""
      
      unless options[:size].empty?
        size_parameters = "/width/#{options[:size].first}/height/" +
			  "#{options[:size].last}"
      else
        # if the thumbnail width and height are defined in the config,
	      # use it, assuming it wasn't locally overriden
        if KalturaFu.config[:thumb_width] && KalturaFu.config[:thumb_height]
          size_parameters = "/width/#{KalturaFu.config[:thumb_width]}/height/" +
			    "#{KalturaFu.config[:thumb_height]}"
        end
      end
      
      unless options[:second].nil?
        seconds_parameter = "/vid_sec/#{options[:second]}"
      else
        seconds_parameter = "/vid_sec/5"
      end
      
      image_tag("#{KalturaFu.cofing[:service_url]}/p/#{KalturaFu.config[:partner_id]}" +
		"/thumbnail/entry_id/#{entry_id}" + 
		seconds_parameter + 
		size_parameters)
    end
def kaltura_thumbnail(entry_id,options={})
      options[:size] ||= []
      size_parameters = ""
      seconds_parameter = ""
      
      unless options[:size].empty?
        size_parameters = "/width/#{options[:size].first}/height/" +
			  "#{options[:size].last}"
      else
        # if the thumbnail width and height are defined in the config,
	      # use it, assuming it wasn't locally overriden
        if KalturaFu.config[:thumb_width] && KalturaFu.config[:thumb_height]
          size_parameters = "/width/#{KalturaFu.config[:thumb_width]}/height/" +
			    "#{KalturaFu.config[:thumb_height]}"
        end
      end
      
      unless options[:second].nil?
        seconds_parameter = "/vid_sec/#{options[:second]}"
      else
        seconds_parameter = "/vid_sec/5"
      end
      
      image_tag("#{KalturaFu.cofing[:service_url]}/p/#{KalturaFu.config[:partner_id]}" +
		"/thumbnail/entry_id/#{entry_id}" + 
		seconds_parameter + 
		size_parameters)
    end
Returns the thumbnail of the provided Kaltura Entry.
 @param [String] entry_id Kaltura entry_id
 @param [Hash] options the options for the thumbnail parameters.
 @option options [Array] :size ([]) an array of [width,height]
 @option options [String] :second (nil) the second of the Kaltura entry that the thumbnail should be of.

 @return [String] Image tag of the thumbnail resource.