Generate thumbnails of all supported media types

The batch processor now returns base64 encoded strings of all images
which can be generated by a preview provider.
It also sends the correct media type so that the browser can always
display what it receives.