Further tweaks to thumbnail congregate algorithm