This image is centered because i set "display:block"

avatar YIW

While this one is not centered, as it is rendered as inline element

avatar YIW