thumbnails: handle more flag, improve documentation, use generic update(), streamline code, add ToDo