loading pixel_data in preprocess inplace