[Bug]: Copying images from the board gets slower the more images you have
### What happened?

If you add a lot (100+) of images to a board, copying a single image FROM the board starts to slow down. Depending on the size of the images, it can take several seconds, or even completely crash the browser tab.

### How can we reproduce the bug?

1. Put a lot of images on a board - the larger the images, the more prominent the error.
2. Copy a single image
3. Observe that the tab freezes for a time while copying.

The issue happens both on our own solution built on the SDK and on TLDraw.com

This actual time consumed seems to be inside the `compressToBase64` function in the `lz-string` library, where we see the nested call to `compress` seemingly being called more times (once for each image on the board?) the more images you have on the board. The individual calls to compress aren't too bad, but the total adds up:

<img width="1355" alt="image" src="https://github.com/user-attachments/assets/aeb1bfd0-ad14-47d0-9eb0-d4d610d5ecd1">
<img width="730" alt="image" src="https://github.com/user-attachments/assets/3928201a-921b-406e-bebb-02257fbb9fa3">




### What browsers are you seeing the problem on?

Chrome

### Where did this happen?

The tldraw.com website

### Contact Details

jorgen.aars.braseth@autodesk.com

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct