Create takePhoto.js