The problem is here:
textureData = TextureIO.newTextureData(iconStream, true, null);
later the data is set to a texture object. If the mipmap option is set to
'false' then some images are rendered as white textures.
The images type is not relevant because, for example, some PNG image are
rendered right and some don't.
I attach this URL where I have put a couple of images: