Add #beginPath call to render to fix animation