Added autofocus before takePicture
Fixed runtime bug
Merge branch 'issue9'