Minor optimization to thumbnails.