gl: make image conversion during image upload

in GLES2 backend, only GL_RGBA and GL_ALPHA are supported texture formats.
Convert images to either rgba or a8 formats when upload images.
gl: remove inserted node if upload glyph image fails