Refreshing canvas every frame