Updating mark-up with new paths for images