reintegrate_jpg_med