Add an argument to mark canvases as D3 only.
Close files between calls to draw.