Add height/width attributes to HTMLImageElement.