Faster and more correct brush drawing