Fix embedded image with Python 3

base64 encoded image data was wrapped with b'' in the data URL.