Fix broken thumbnails in listing of categories

Fixes #115