import cleanup
Start of encapsulating rendering in viewport to support PDF