Refactoring render animation task