modify image directory