Fixed and tested Sprite.cs.