Add render loop by using animation frames