added shuffle algorithm
randomize image order