Added addAnimation() with variable frameWidth.