Updated takePic