completely removed GLUT stuff.
added HDR image output.