tweak how mask is created to remove jitter. fixes #1574