Support proxy function that may be used to avoid tainting canvas

[#78264960]

Provide an example on stamps.html page.