drawutils: implement uniform and mask blending.