Converts Qt supported images to an OpenGL compatible raw format.