Can you serialize/deserialize a canvas object in javascript?
You can get direct pixel access with canvas.getImageData() and .putImageData(). You can also serialize images to a data URL with canvas.toDataURL() for posting to a server.
This only works in newer browsers.