Make thumbnails with QImage instead of ImageMagic convert

It's much faster than spawning a separate process running a shell
script.