Fix embedded image support.