now supports F3 key press to write GL viewport to raw image format