robuster image loading