fix, connection never close
Add take picture example