Refactoring of sprites and animations.