image directory fix