Init canvas refactor