added support for passing in dom elements in texImage2D()

Added support for passing in dom elements in texImage2D() like that in
WebGL. Added more demos.