Use new API for gallery customizations

Do not merge until the related PSPDFKit PR is merged in.