fix issue with image resource not showing