implemented AnimationCache