Mask-based brush operations