Create takephoto.js