Use a single off-DOM canvas for bounds measurement

Works fine with WebKit in my testing.