generate thumbnails for images and store them in elasticsearch

nothing is configurable at the moment, but it seems to work so far.  I
still have to move the thumbnail generating code to some dedicated
namespace.