I have created an image using javascript and wanted to wrap inside a div but when I wrap the image inside a div it is showing as [object HTMLImageElement] but when i remove