An additional hint: the XDB file contains information about the path to the icon (for example, something like DXT1, DXT3, 8888).
In Paint.NET, this is selected in the dialog box during saving. I don't know how it's done in other photo editors.
New here? I'm Roha — want a quick tour?