[Fix] Issue with mask and zIndex (ufo monster working) [Opt] Removed matrix allocations when using mask and removed vector allocations in filter