body = document.body
dbg = document.getElementById("jsdebug")
canvas = document.getElementById("canvas")
-data=document.getElementById("image_serialize")
+data = document.getElementById("image_serialize")
image = canvas.getContext("2d")
mouse = 0
image_serialize=""
+image.lineJoin = "round"
+image.lineCap = "round"
+data.value += " stroke-linejoin round "
+data.value += " stroke-linecap round "
// start and current coordinates of a draw
// serves for tracking, whether path ends close to its beginning