If anyone is experiencing the error above, this is because Pillow 10 deprecated the method. use getbbox instead. I have a fork ready with that, feel free to clone it and then do pip install ./myfork in the parent folder.
for proper support one could do this to support both versions