Refactored PrintPixels and ReconImage into one program.