save_img() add option "write_solution"