Fixed #5533: Fix usage of new SpriteFrame in engine