Fix implementation of pil_to_ndarray in MultiImage