Replace image in template In this example, you can see how to replace an image in the template document. The new image is a Base64-encoded data URI in the input JSON map.