[WPF] Fix loading of 8bit paletted images

WPF requires a palette to be set when loading paletted images. We need
to maintain the BitmapSource palette in ConvertBitmapTo96DPI().
Merge pull request #404 from thefiddler/fix_wpf_palettes

[WPF] Fix loading of 8bit paletted images