update image path for caption