Ok I did a little more testing.

Any OLD post with an image (using the ubb code) in the post displays fine.

HOWEVER, when creating a new thread, replying, or editing, all img codes end up with the spaces.