Improve path drawing