Same comment as above. :-)

All of this code will probably get executed on the order of 2 times total, and only at launch. Meanwhile, we're serializing a 100K JSON string every time the user paints on the canvas...