ResourceIcon refactoring & tests.