make images relative to documents