Added code used to reconstruct image