index.js: fixed image loading event
updated stuff