I don't completely understand why this changed, but I think that it is also OK to raise a MaskError when an incorrectly-sized mask is supplied.