Use icon mask (if available) to generate 32bpp version

Note that this has been specifically patched to work for all icon frames
(not just the first one)