fixed image file loading