refactor: rename takepicture to scanQRCode