Fixed Permutation problem with zscore_img