Update mask when bounds change