Updated to use picamera module.