Send Email using docx4j

using docx4j I am able to convert word document in to HTML file and send Email.

I am not able to render images into Email

How are those images referenced in the HTML?

This the image reference in the generated html using docx4j API.
/home/kanajam.madhu/tmp/35c01c21-0e78-45e4-83bb-dc696589e696image1.jpeg

Below is code converts word to html document

val (docx, variables) = generateDocxFileFromTemplate(id, templateType, fileName, outputName)
    val fileInputStream = new FileInputStream(docx)
    val wordMLPackage = Docx4J.load(fileInputStream)
    val htmlSettings = Docx4J.createHTMLSettings
    htmlSettings.setWmlPackage(wordMLPackage)
    htmlSettings.setImageDirPath(imagefilePath)
    htmlSettings.setImageTargetUri("")
    val outPath = s"tmp/html_$outputName.html"
    val out = new FileOutputStream(outPath)
    Docx4J.toHTML(htmlSettings, out, Docx4J.FLAG_EXPORT_PREFER_XSL)
    val result = Source.fromFile(new File(outPath), "utf-8")
    val html = result.getLines().mkString("")
    result.close()
    variables