Change image urls by internal references