Get PNG from directions?

Hello,

I’d like to display directions as a PNG file.

Is there a way to get a PNG from a URL with source + destination?

www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=LAT%2CLON%3BLAT%2CLON#map=12/LAT/LON

Thank you.