load_images.js, implement the flag more for update()