the code from that page is not code that will "plug and play" directly into image resizer.
I have logged a bug so our engineers can take a look at the problem to try to fix it for an upcoming update in data bridge.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.