Draw on an offscreen canvas and set leaflet's async property to true