Pré-visualização de imagens em linha às vezes é cortada à esquerda ou à direita por um pixel

Why not add the border using CSS?