def app_config(app_config, permission_factory):
    """Customize application configuration."""
    app_config['FILES_REST_PERMISSION_FACTORY'] = permission_factory
    app_config['PREVIEWER_ABSTRACT_TEMPLATE'] = 'invenio_iiif/base.html'
    return app_config