[WPF] Fix high-DPI image scaling

This should fix issue #401.