Add the ability to support per-dimension scaling.

This enables drawing architectural drawings with different regions of the paper at different scales quite easily.