Replaced GDI+ PNG code with WIC.