drawPath rewritten