For new gallery, make nolines mode have caption centered.

Based on feedback from qgil.

Change-Id: I3d04de7df89a81a3b4aca4d1d800b16c214f65bf
Merge "For new gallery, make nolines mode have caption centered."