write_to_image() is now implicitly called from reconstruct()