Added image centering to the layout template