More checks and logging for thumbnails (ref #71).