This is one for a script to run once for everything (though it would take a while initially), and run on chapter upload.
Simply add the chapter to the filename.
1.png from chapter 12 becomes 0012_1.png
d12.png from chapter 16.5 becomes 0016.5_d12.png
Why bother? Because it is extremely...