update image dir