add check in case canvas is not supported