Modified p2a_solution.cpp so that output images are black on white