Fix image urls for new document.