Use NumPy for image_to_data conversion