improvements to thumbnailing