Fixed image example

Image example no longer worked in Chrome due to some changes in how they
handle arguments in event functions.