There are some complications, when sampling pixels outside a xrender picture, xrender doesn't support a behaviour similar to OpenGL's clamp to border. So we give the masks an extra 1-pixel outer rim, so we can control what color the outside pixels would be, by using the "Pad" repeat mode. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>