setup canvas from config params