added class to handle animation on spritesheet