Replaced JS centering with CSS centering

@couzteau this is ready. I also made it so that the left aligned img text centered with image if image width is smaller than text length. Which is not the same as the design I provided but I think it looks slightly better.