How to use image in HTML code (to convert to pdf/webview)?

Using ComponentToImage Extension, I created image of a Horizontal arrangement and able to show it by using when created event and filePath as an input . Now I want to use this picture/image in my html code to show it in a pdf (Webview). I am unable to do this. Kindly Help… Thanks alot.