     @$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


    if @options.imageBackground
      @$imageBgContainer.css
        width: @previewSize.w + @imgBgBorder[1] + @imgBgBorder[3]
        height: @previewSize.h + @imgBgBorder[0] + @imgBgBorder[2]

    if @imageLoaded
      @setupZoomer()

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

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

    @$fileInput = @options.$fileInput
      .attr
