Update the image path an the link path.