Added auto-saving when editing the canvas