Spec how texImage2D sets the texture width and height depending on the element

It is worthwhile to spec this explicitly to avoid any ambiguity,
especially for less straightforward cases like SVG images.