[Cucumber] Webrat / Watir - generating page images

I am using Cucumber with Webrat/Watir/Celerity for UI testing.

I would like to generate an error report which shows the page image
for each failed test.

I believe I have read about this being done, but now I can’t find any
info online.

Can someone please point me in the right direction??

Thanks in advance!!

Here’s the step I use for taking screenshots:
screenshot.rb · GitHub.

(I extracted the method in the Gist, so it may be a bit off)