This adds support for converting to different WIC formats, in one case to more closely match native d3dx9, and in the other to convert to a format that can actually be represented by d3d9.
-- v2: d3dx9: Add support for decoding 48bpp RGB PNG files. d3dx9: Report 24bpp RGB as 32bpp XRGB for JPG and PNG files.