Inline preview images are sometimes cut off left or right by one pixel

Why not add the border using CSS?