Added support for drawPath