and use np.uint8 as type.