Fix #320 - WebGL texImage2d check if source is an image