[C++11] Export UV rewrite

This feature stopped working in Qt 5.2 because of some change to
QPainter/QImage involving the scale.  I rewrote it and added a few
improvements along the way.  Resolves #52.