   }
   
   public func drawToContext(context : CGContextRef) {
-    svg.drawToContext(context, state: SVGState())
+    svg.drawToContext(context)
   }
   
   public func drawIdToContext(context : CGContextRef, id : String) {
     let elem = svg.findWithID(id)
     let boundingBox = elem?.boundingBox
-    elem?.drawToContext(context, state: SVGState())
+    elem?.drawToContext(context)
   }
 }
 

  var drawableChildren : [SVGDrawable] {
    return children.filter({ $0 is SVGDrawable }).map({ $0 as! SVGDrawable })
  }
  func drawToContext(context: CGContextRef, state: SVGState) {
    if display == "none" { return }
    
    // Loop over all children and draw

  var points : [CGPoint] {
    return attributes["points"] as? [CGPoint] ?? []
  }
  override func drawToContext(context: CGContextRef) {
    var pts = points
    CGContextAddLines(context, &pts, pts.count)
    CGContextClosePath(context)
