     @$preview.css 'background-position', "#{@offset.x}px #{@offset.y}px"
     if @options.imageBackground
       @$imageBg.css
-        left: @offset.x + @imgBgBorder[3]
-        top: @offset.y + @imgBgBorder[0]
+        left: @offset.x + @imageBgBorderWidthArray[3]
+        top: @offset.y + @imageBgBorderWidthArray[0]
 
   fixOffset: (offset) ->
     return offset unless @imageLoaded

    @image.crossOrigin = 'Anonymous' if @options.allowCrossOrigin

    if typeof @options.imageBackgroundBorderWidth is 'object'
      @imgBgBorder = @options.imageBackgroundBorderWidth
    else
      @imgBgBorder[0] = @options.imageBackgroundBorderWidth
      @imgBgBorder[1] = @options.imageBackgroundBorderWidth
      @imgBgBorder[2] = @options.imageBackgroundBorderWidth
      @imgBgBorder[3] = @options.imageBackgroundBorderWidth

    @$fileInput = @options.$fileInput
      .attr

        .css
          position: 'absolute'
          zIndex: 0
          left: -@imageBgBorderWidthArray[3] + window.parseInt @$preview.css 'border-left-width'
          top: -@imageBgBorderWidthArray[0] + window.parseInt @$preview.css 'border-top-width'
          width: @previewSize.w + @imageBgBorderWidthArray[1] + @imageBgBorderWidthArray[3]
          height: @previewSize.h + @imageBgBorderWidthArray[0] + @imageBgBorderWidthArray[2]
        .append @$imageBg
      @$imageBgContainer.css overflow: 'hidden' if @imageBgBorderWidthArray[0] > 0
      $previewContainer
        .css 'position', 'relative'
        .prepend @$imageBgContainer
