1. -Add Logic to check if we call opengl function outside the main thread.
2. -Remove the logic of change FrameSprite's property. use it as frames' parent node.