thumbnailer: Add support for rotated thumbnails

Similar to what we did in the movie player itself, but for thumbnails.