                 darkBackground: false
             }
             
-            mappingBox = false 
+            mappingBox = false
 
             stage = new createjs.Stage canvas
 

                
                        if scope.resetCallback then resetCallback()



               
                image.src = scope.file

            # setup canvase event handlers
    }


    else
        scale = height / box.height

    box.height = (Math.floor box.height * scale)
    box.width = (Math.floor box.width * scale)

    # calculate bounding box for top left corner

    box.maxX = width - box.width
    box.maxY = height - box.height

    return box

mod.directive "mappingBox", () ->
    {
