added animations to sprite class