fixed a bug in the demo with Chrome not being able to work well with:
new Image()