Add debug.saveImage()
Fix messed up webcam display.