As to what the problem actually is, the default display type on images is "inline," which automatically creates space beneath the baseline of the element for descending characters in text (like p,j,g,y) that are on the same line. This space is unnecessary in cases where you've got just an image; so "block" gets rid of it.