proccess bmp files and output to csv before feeding data to OpenGL