Thumbnail scaling improvements