Replace image sources with base64 encoded data strings.