Fixed bug in Zscore_img