updates img paths