remove object allocation inside draw()

Hi @chiuki  great talk!
small PR to avoid allocating object during drawing (since this is an educational sample, it's good to show the best practices :)