     changed:      undefined,
     clicked:      undefined,
     selected:     undefined,
+    limit:        0,
+    limit_reached:undefined,
   }
   jQuery.extend(default_options, opts)
 

      if imagepicker_option.value() in @selected_values()
        imagepicker_option.option.prop("selected", false)
      else
        imagepicker_option.option.prop("selected", true)
    else
      if @has_implicit_blanks() && imagepicker_option.is_selected()
        @select.val("")

#
# Image Picker source
# by Rodrigo Vera
# added limit-functionality by Jason M. Batchelor
#
type = (obj) ->
  if obj == undefined or obj == null
    return String obj
  classToType = new Object
  for name in "Boolean Number String Function Array Date RegExp".split(" ")
    classToType["[object " + name + "]"] = name.toLowerCase()
  myClass = Object.prototype.toString.call obj
  if myClass of classToType
    return classToType[myClass]
  return "object"

jQuery.fn.extend({
  imagepicker: (opts = {}) ->
