minor bug fix

Fixed picamera capture bug causing program to abort