check if run as root, minor improvement in error handling
average multiple frames for first shot. seems to work ok.