Update HTMLElement to HTMLImageElement