Implement image conversion from QImage to OpenGL format (ref #12)