Add autotest for thumbnails
Thumbnailing is complex code that isn't easy to manually test given the caching mechanism and variety in input data
Add a basic autotest that generates previews for a file and compares them to an expected file
Currently only for png and jpg images, but to be extended to other formats/scenarios