       return if !href or href == '#'
       @$modal.addClass('wdz-loading')
       @fireCallback('beforeLoad')
-      if href.match(/\.(gif|jpg|jpeg|png)$/)
+      if href.match(/\.(gif|jpg|jpeg|png)$/) || @lightbox
         @loadImage href, e
       else
         @loadRemote href, e

    relocate_modal: true
    allow_outside_click: true
    allow_esc: true
    open: ->
      $(@).trigger('open.windoze')
    close: ->

      $(@).trigger('destroy.windoze')
    readDataAttributes: ->
      $el = @$el
      attrs = ['container', 'delegate', 'init_shown', 'lightbox', 'relocate_modal', 'animation']
      detected_attrs = attrs.map((a) -> $el.attr("data-wdz-#{a}"))
      for attr, i in detected_attrs
        if attr
