pass CGPathElement instead of CGPoint