Fix issue with the autoloader and the shim

And a little linting
Always update the thumbnail, even if there isn't an image