How to view png images from pm4py Process Mining

How to view images generated from the pm4py package

import pm4py
import os

log = pm4py.read_xes(os.path.join("tests", "input_data", "receipt.xes"))
pm4py.view_events_distribution_graph(log, distr_type="days_week", format="svg")

using

st.write(pm4py.view_events_distribution_graph(log, distr_type="days_week", format="svg"))

returning None