adapt picamera to thread