When trying to convert the canvas to a png, I kept getting empty canvases.
This can be fixed by using getContext("experimental-webgl", {preserveDrawingBuffer: true}); when using getContext.
Just wondering whether the code should be changed accordingly.