Adding animationframe