Thanks! I use my own algorithms. It's not ML or AI or anything like that just good old pixels manipulation ;)
The auto color palettes though isn't mine, that's part of the PIL library.