Changed BaseSprite class.