Show thumbnail image of SW part in HTML file

I want to show thumbnail image of SolidWorks part in HTML file, without saving the image of SW part.

Please help me.

SolidworksApi macros