added button function

switches from picture (from flask) to a static canvas