part 1 of fixing image names