Fixed zscore_img to datatype correctly.