Fix locating of image file from resources.