Use XPS parser from .net instead of the one from PdfSharp.XPS.
Fixed #4 Create image in memory
Redundant code.
WPF UI Need to run in STA apartment.