Resizes thumbnail.