Update takepicture.js