brush masks: rendering fixes

better handling of abrupt opacity and hardness changes in the course
brush strokes