Drawing dots on an image based on coordinates

I use GitHub - blackary/streamlit-image-coordinates: Get the coordinates of clicks on an image in your streamlit app to get coordinates from a image. I want to display these coordinates on the same picture and have this be able to export as a pdf or png or jpeg. Does anyone know how to approach this?