fix an issue where the text padding is wrong when no image is used

When no image is used, the left text padding was set to 2 * the padding.