       toggleDragModeOnDblclick: false
       built: ->
         container = $(@).cropper 'getContainerData'
-        cropBoxWidth = 200;
-        cropBoxHeight = 200;
+        cropBoxWidth = self.cropBoxWidth;
+        cropBoxHeight = self.cropBoxHeight;
 
         $(@).cropper('setCropBoxData',
           width: cropBoxWidth,

      array.push(binary.charCodeAt(k))
    new Blob([new Uint8Array(array)], type: 'image/png')

  setBlob: ->
    dataURL = @modalCropImg.cropper('getCroppedCanvas').toDataURL('image/png')
    @croppedImageBlob = @dataURLtoBlob(dataURL)

  getBlob: ->
    @croppedImageBlob

    @fileInput.trigger('click')

  onModalShow: =>
    self = @
    @modalCropImg.cropper(
      viewMode: 1
      center: false
