I didn't try to put in a patch like the one in the picture. I don't have the skills to make the patch disappear.
I removed the stake pockets by drilling out the spot welds. I cut the top rail off a couple of inches from the top. A new piece of sheet metal was cut to size. The top and stake pockets were plug welded onto the new side.