Serve SVG thumbs as WebP (if supported)

Thumbnailer changes need to follow. **Please don't merge it yet.**