Update
Clean up
Remove the state, not used
Move canvas context creation to globals
Basic drawing works
Draw the frames into canvas contexes like in the original code
Canvas container works as the original