 
     __buildWidget: ->
       @__widgetElement = $(tpl('crop-widget')).appendTo @container
-      @__setState 'waiting'
 
     __clearImage: ->
       @__jCropApi?.destroy()
       @__img?.off().remove()
       @__deferred?.reject(IMAGE_CLEARED)
       @__deferred = $.Deferred()
-      @__setState 'waiting'
 
     __setImage: (@__url) ->
       @__img = $('<img/>')


    # This method could be usefull if you want to make your own done button.
    forceDone: ->
      if @__state is 'loaded'
        @__deferred.resolve @getCurrentCoords()
      else
        throw new Error("not ready")

    # Returns last selected area coords
    getCurrentCoords: ->

      @__originalSize = originalSize
      @__resizedSize = resizedSize


    # error
    __setState: (state) ->
      prefix = 'uploadcare-crop-widget--'
      @__widgetElement.addClass(prefix + state)

    __initJcrop: (previousCoords) ->
      jCropOptions =
