update img links and alt attributes