Added createSprite() to 2D rendering