fixed image directory problem