Replace image paths.