I decided to use only loadHTMLString(_:baseURL:) and in case of local image, I put the Data URL type string by base64 encoded in img tag.
loadHTMLString(_:baseURL:)