use picamera to control the camera