updated rgbread
implementing glut module