[RT #99507] don't apply the icon mask to images with an alpha channel

but do it if the caller asks nicely