put while loop in camera thread