Implementation for supporting animated sprites.
Fixed bug where two Render2D instances were created.