Correctly scale quadmesh linewidth to dpi

As this touches C++ code, it will have a non-straightforward merge to master...
Do we need an image quite this big? Can we work with something smaller?