moved out canvas class