         results: data
         more: data.length > 0
 
-  buildimageOptions: ->
+  buildImageOptions: ->
     @options.formatResult = (item) ->
       html = '<div class="fancy_select-result">'
       html += "<img src='#{item.image}' alt='#{item.text}'>" if item.image

      @initCreateChoiceOnce()
      @initCreateChoice()
    @options

  initSortable: ->
    @el.select2('container').find('ul.select2-choices').sortable

        @modal.data('target', this)
        fn = =>
          $('#modal_form form input[name$="[name]"]').val(term)
          @runModal()
        $.get @el.data('add'), {modal: true}, fn, 'script'
      null

