Real time image reconstruction circuit for on-sensor-compression