picamera implementation