performance improvements for brush and path tools