Fixed bug on draw.php that erased last mark if mouse exited canvas and then grab tool was used next.