Right. Instead, you might have to record all the user's actions on
the client side (in your own JavaScript structures for example), and
when you want to save it to the server, send all those structures to
a server-side script that can replay them and recreate the drawing on
the server.