Display a PDF in a canvas?

OK, got the server module to generate a jpeg from the pdf using pdf2image. Now how do I send that back to the browser to stick in the canvas?

I’ve been playing around with the anvil.media module, but I can’t seem to find the happy path back…

thanks,
chris