     
     override public func layoutSubviews() {
         super.layoutSubviews()
-        shapeLayer.frame.origin  = frame.origin
-        shapeLayer.bounds.origin = frame.origin
     }
     
     func setShapeLayer(colors: HOKColors) {
         self.backgroundColor = UIColor.clearColor()
         shapeLayer.fillColor = colors.backgroundColor.CGColor
+        shapeLayer.frame     = frame
         self.layer.insertSublayer(shapeLayer, atIndex: 0)
     }
     

            displayLink!.addToRunLoop(NSRunLoop.mainRunLoop(), forMode: NSDefaultRunLoopMode)
        }
        
        shapeLayer.bounds = CGRect(origin: CGPointZero, size: self.bounds.size)
    }
    
    func updatePath() {

        
        // This is needed to retain this instance.
        instance = self
        
        let colors = (self.colors == nil) ? colorScheme.getColors() : self.colors
        
