fix the camera thread to create the picture.