fork of: http://www.codeproject.com/Articles/238135/WPF-Print-Engine-Part-I