thumbnails: avoid upsampling small embedded thumbs