load_images.js: extend load images pipelet from Set; code refactoring
fix load images tests