Mask drawing utils.