Add capturePhoto to index.js