Added facilities for saving shapshot of Image into OpenGL C code.