                 path.addLineToPoint(curr)
                 last  = curr
             }
-            /*
-            var pathRect = path.bounds
-            var pos = CGAffineTransformMakeTranslation(abs(path.bounds.origin.x), abs(path.bounds.origin.y))
-            path.applyTransform(pos)
-            */
-            
             return path
         }
     }

    
    public override func didMoveToSuperview() {
        super.didMoveToSuperview()
    }
    
    var logoPath: UIBezierPath {

        self.fgLayer?.removeAllAnimations()
    }
    
    func shapeLayerWithLogoPath(strokeColor: UIColor, lineJoin: String) -> CAShapeLayer {
        var shapeLayer = CAShapeLayer()
        shapeLayer.path = logoPath.CGPath
        shapeLayer.strokeColor = strokeColor.CGColor
        shapeLayer.fillColor = nil
        if lineWidth == nil {
            shapeLayer.lineWidth = self.strokeRatio
        } else {
            shapeLayer.lineWidth = self.lineWidth!
        }
        shapeLayer.lineJoin = lineJoin
        return shapeLayer
    }
    
    func addBackground() {
        if bgLayer == nil {
            bgLayer = shapeLayerWithLogoPath(UIColor(red: 51/255, green: 51/255, blue: 48/255, alpha: 1), lineJoin: kCALineJoinMiter)
            self.layer.addSublayer(bgLayer)
        }
    }
