Added image centering functionality to ClassPools.