allow camera ID to be passed on the command line; fix logging error