Added support for drawing directly to <canvas> tags.