I'm with mrrabbit on this one. I would definitely replace the rim as soon as possible. From the first picture it appears there may be a small crack developing in the bead seat. From the last picture it appears that the rim is bent all the way through, the wheel is no longer round and never will be.
I'm not sure you can buy just the rim, you may have to buy a new wheel.
Sorry for your loss.