make AniSprite class display correctly

further testing is needed to ensure that switching between
animations will execute correctly.