new Image vs document.createElement

Simplify assert.js: immediately show error message on fail.