store video frames a canvas
eliminate a global var i
draw network less frequently, reduce number of drawn neurons