If you want to use webp for any reason don't use config.automatic_images... I'm also not sure if its not going to go the way of the dodo in the future anyway with the response I got on github (
You must be registered to see the links
).
I just decided in the end that it was better to have images with unique names that include the directory structure (Ex. CharacterName ReferenceScene/ReferenceSceneType ImageNumber)...
Anything in the image directory as others have said is just picked up automatically.
P.S ... If you read the final response on that github link... That 'better' function I wrote worked, but after the # of files in the directory was over a certain amount it just killed load times. Maybe someone better with python could have come up with something more efficient... XD