fix rendering od text with long words anmd center properly when text is smaller that image