corrected row ordering of image data for opengl