Deleted comment
Might even be able to do it in a way that works without canvas.
Reply on news.ycombinator.com