change canvas to dic