redo some brush drawing stuff to remove useless checks, and to allow for replace mode in the future