Masking the block for painting.