Use ol.dom.createCanvasContext2D and remove canvas variable