replace image directory