Converts images to raw OpenGL data.