changed the location and height/width variables
simplified things considerably with an 'intersection' function
mask#framedBy
test mask#framedBy