     skip_element = (behind_el && $(behind_el).has($(el)).length > 0) ||
                     (!is_image && rgb.a == 0)
 
-    console.log skip_element, is_image or is_image?, el.style['background-image'], el
-
     if skip_element
       hidden_els.push [el, el.style.visibility]
       el.style.visibility = 'hidden'


  while el && el.tagName not in ['BODY', 'HTML']

    is_image = el.tagName == 'IMG' || el.style['background-image']

    # Skip this element if it doesn't contribute to background color
    # or if it is a decendent of behind_el

        # we have to extract a background url into a temporary IMG
        # element so that it can be processed by colorThief

        url = $(el).css('background-image')
                .replace(/^url\(["']?/, '').replace(/["']?\)$/, '')
      else 
        url = el.src
