Adding centering logic to a subclass of UICollectionViewFlowLayout object.