WinForms: Fix resizing indexed images on windows, which has the same restrictions as on mono