replace images with thumbnails (hopefully in all places)