fixed ImageResourceLoader to load icon correctly on OSX