Set img to display:block instead of the default display:inline-block to avoid a bottom border.