add GL_BGR support (to Graphics and Texture)
move 3x redundant convert-from-array-header-to-pixel-format code into a function