get screen snapshot from video buffer instead of GLKView
make sure emulation loop has finished before shutting down OpenGL