       throw "You don't have defaultOptions or templates variables"
       return false
 
+    # jQuery
     @options = $.extend defaultOptions, options
 
     ###

   Private method
  ###
  _getInitialParams: ->
    thumbnails = if not @options.thumbnails then false else $(@thumbnails).height()

    css = getStyle @overlay
    horizontal = toInt(css 'padding-left') + toInt(css 'padding-right')


      @updateDimensions image.width, image.height

      setStyle @container, "background-image": "url(#{image.source})"

      @header.innerHTML = if image.title then templates['image-title'].replace '{{title}}', image.title else ''
    @
