modify the base path relative to the images.