Adding masked rendering, mas as array of bytes