So I'm using react-native-signature-capture to capture a signature, but I wan't to cut down on the image size before encoding it. I used <https://github.com/bamlab/react-native-image-resizer> to resize the image, but now I don't know how to convert it to base64. I tried using RN's ImageStore but I get an error with the filepath of the image. See below for the code:

```
ImageResizer.createResizedImage(encoded.pathName, 200, 100, 'PNG', 80, null, encoded.pathName)
  .then((resizedImageUrl) => {
    ImageStore.getBase64ForTag(resizedImageUrl, (data) => {
      console.log(data);
    }, (err) => console.log(err));
  })
  .catch((err) => console.log('failed to resize: ' + err));

```