fix up the image references