changed randomization in loadIamges because it was relying on Shuffle which the rig didn't have, not using randperm