Make image resource loading finally work again