Updated to have correct aspect ratio.
Quick hack to exit if no new frame has been received in 5 seconds.