Add optional parameters to control the OpenGL Texture

Also fix the swaped Red and Blue channels being swaped, plus add some documentation