Test code for picamera