send json of drawing from canvas to server