load_images.js: add emit_add() and emit_remove()