Some fixes and changes to the AlphaSprite class.