Changed type of masked imaged from np.int32 to np.int, because of bug on windows !