 
     if @options.imageBackground
       @$imageBgContainer.css
-        width: @previewSize.w + @options.imageBackgroundBorderWidth * 2
-        height: @previewSize.h + @options.imageBackgroundBorderWidth * 2
+        width: @previewSize.w + @imgBgBorder[1] + @imgBgBorder[3]
+        height: @previewSize.h + @imgBgBorder[0] + @imgBgBorder[2]
 
     if @imageLoaded
       @setupZoomer()

    @$preview.css 'background-position', "#{@offset.x}px #{@offset.y}px"
    if @options.imageBackground
      @$imageBg.css
        left: @offset.x + @options.imageBackgroundBorderWidth
        top: @offset.y + @options.imageBackgroundBorderWidth

  fixOffset: (offset) ->
    return offset unless @imageLoaded

    @$preview.height @previewSize.h if @options.height

    if @options.imageBackground
      $previewContainer = @options.$previewContainer
      @$imageBg = $ '<img />'
        .addClass 'cropit-image-background'
