Why tough? It works. What exactly is wasted here? 100MB for Chrome binary and that few percent of CPU hike while rendering the image? Is it worth wasting endless hours of time researching some niche, quirky, badly documented drawing library, where the hard earned end result has absolutely negligible difference from a human standpoint? Machines work for us, not reverse.