     $(selector, @form)
 
   bindEvents: ->
-    self = @
+    _this = @
     @fileInput.on 'change', (e) ->
-      self.onFileInputChange(e, @)
+      _this.onFileInputChange(e, @)
 
     @pickImageEl.on 'click', @onPickImageClick
     @modalCrop.on 'shown.bs.modal', @onModalShow

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

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

    @readFile(input)

  readFile: (input) ->
    _this = @
    reader = new FileReader
    reader.onload = ->
      _this.modalCropImg.attr('src', reader.result)
      _this.modalCrop.modal('show')

    reader.readAsDataURL(input.files[0])

