replace base64 images with pngs