Use pil_to_ndarray to load PIL images