You can create an <image> object using the document.create_element method.
let image = document.create_element("image")
.unwrap()
.dyn_into::<web_sys::HtmlImageElement>()
.unwrap();
You can access an <image> object using the document.get_element_by_id method.
let button = document.get_element_by_id("my-image")
.unwrap()
.dyn_into::<web_sys::HtmlImageElement>()
.unwrap();
width - The width of the image.
width set_widthheight - The height of the image.
height set_height
features = [
'HtmlImageElement',
]