There are other violations in the main box if it were here in Cleveland and in a home that was being inspected for the purpose of selling. But thats here. We (me) are not trying to scare you and what you have may pass local code. Thats why someone local and not over the internet needs a peek at it.
You have a black wire connected to the neutral lugs, a white wire to one of the breakers, neither are marked to indicate what they are, indicating color change, two circuits are doubled up (acceptable) in most cases. An arc or what looks to be a burnt mark on the right edge of the main box itself. That probably made someone jump when they did that
That tells me that the box must have a ground. If the ground is through the conduit that wouldn't pass here but on older homes may be OK. If you added new to the box it might not pass today. If the box is grounded it doesn't look like the the neutral bars are bonded to the box, that may be OK for your local code. The Bonding debate is as mysterious as X10 itself.
Bottom line as far as code goes... its up to local code. The requirements can be way off of what national code is. Local authorities have final say. I installed 5 metal outlet boxes once for a home owner/friend. They made the inspector mad by raising hell and telling him he had to be out there to inspect the rough wiring right then and there. He walked in and pointed to 2 boxes, said they had to be plastic and walked out. Said call him when the violations where fixed. (thanks buddy!)