This looks like a tremendously useful extension! I just gave it a try on a fresh Aseprite installation, with no other extensions enabled, and am running into crashes when attempting to use any functionality.
Repro: with a few painted pixels on a single layer, selecting an area and attempting to utilize any option under Edit > Center, Aseprite immediately crashes. In other words, a base usecase.
System Details:
- MacOS 14.6
- Extension v2.0
- Aseprite v1.3.7
Asesprite debug log shows the extension loading successfully, but no debug info:
```
EXT: Loading extension '/Users/[redacted]/Library/Application Support/Aseprite/extensions/center-image/package.json'...
EXT: Extension 'center-image' loaded
BC: Load extension
- [name]=center-image
- [url]=https://thkaspar.itch.io/
- [version]=2.0.0
EXT: New keyboard shortcuts 'center-image-keys' in '/Users/[redacted]/Library/Application Support/Aseprite/extensions/center-image/./extension-keys.aseprite-keys'
EXT: New script path=/Users/[redacted]/Library/Application Support/Aseprite/extensions/center-image/./extension.lua
...
CTXT: Executing command Center
--EOF--
```
Let me know if there's a better place to submit a bug report and I can move this there so it doesn't clog your project comments, but hopefully this is helpful!