     @image.crossOrigin = 'Anonymous' if @options.allowCrossOrigin
 
     if typeof @options.imageBackgroundBorderWidth is 'object'
-      @imgBgBorder = @options.imageBackgroundBorderWidth
+      @imageBgBorderWidthArray = @options.imageBackgroundBorderWidth
     else
-      @imgBgBorder[0] = @options.imageBackgroundBorderWidth
-      @imgBgBorder[1] = @options.imageBackgroundBorderWidth
-      @imgBgBorder[2] = @options.imageBackgroundBorderWidth
-      @imgBgBorder[3] = @options.imageBackgroundBorderWidth
+      @imageBgBorderWidthArray[0] = @options.imageBackgroundBorderWidth
+      @imageBgBorderWidthArray[1] = @options.imageBackgroundBorderWidth
+      @imageBgBorderWidthArray[2] = @options.imageBackgroundBorderWidth
+      @imageBgBorderWidthArray[3] = @options.imageBackgroundBorderWidth
 
     @$fileInput = @options.$fileInput
       .attr


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

    if @imageLoaded
      @setupZoomer()

        .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
