Added use of canvases if supported.