Added rotation support for viewport and WPF renderers