         
         if let theView = trimView {
             var viewFrame = bounds
-            viewFrame.origin.x = CGRectGetMidX(bounds) - CGFloat(optimumWidth / 2)
-            viewFrame.size.width = CGFloat(optimumWidth)
+            viewFrame.origin.x = CGRectGetMidX(bounds) - CGFloat(canvasWidth / 2)
+            viewFrame.size.width = CGFloat(canvasWidth)
             theView.frame = viewFrame
         }
         

        addSubview(trimView)
        
        
    }
    
    override func drawRect(dirtyRect: NSRect) {

            return height
        }
        
        var startPointX = firstBandX
        let currentContext: CGContextRef = Unmanaged<CGContext>.fromOpaque(NSGraphicsContext.currentContext().graphicsPort()).takeUnretainedValue()
        
        CGContextSetLineWidth(currentContext, 1.0)
