Thanks for trying this out!
In JavaScript, you can create a PCEImage object (source for that object is here[0]) with an image string and then use the drawInCanvas method.
For now, I haven’t written a PCEImage implementation in any other language though.