fix in bash script
major change: randomize image order, load images on demand