Added method for restoring idle frame after playing an animation.