add redo function
default options
add download function
auto resize canvas in demo.htm