takePicture.js

amended