Masks: Replace frame dimensions instead of creating maskFrame