The img_grey approach works for me after fixing the data type to 8-bit integers:
img = Image.fromarray(255*data.astype(np.uint8), 'L')