replaced graphics based element masks with pre-calculated array (MM engine)