Image scrambler -- scramble an array, then apply to an image