Added saving canvas functionality