     @uploadImageBtn.on 'click', @onUploadImageBtnClick
     @cropActionsBtn.on 'click', (e) ->
       btn = @
-      self.onActionBtnClick(btn)
+      _this.onActionBtnClick(btn)
     @croppedImageBlob = null
 
   onPickImageClick: =>
     @fileInput.trigger('click')
 
   onModalShow: =>
-    self = @
+    _this = @
     @modalCropImg.cropper(
       viewMode: 1
       center: false

    $(selector, @form)

  bindEvents: ->
    self = @
    @fileInput.on 'change', (e) ->
      self.onFileInputChange(e, @)

    @pickImageEl.on 'click', @onPickImageClick
    @modalCrop.on 'shown.bs.modal', @onModalShow

      cropBoxResizable: false
      toggleDragModeOnDblclick: false
      built: ->
        $image = $(@)
        container = $image.cropper 'getContainerData'
        cropBoxWidth = _this.cropBoxWidth;
        cropBoxHeight = _this.cropBoxHeight;

        $image.cropper('setCropBoxData',
          width: cropBoxWidth,
          height: cropBoxHeight,
          left: (container.width - cropBoxWidth) / 2,
