restore autowhitebalance to avoid black screen
add more flag to control camera

not tested