Actually I noticed a small issue. On line 1945 (or close to it) :
PHP Code:
return '<img src="' . $link . '" border="1" alt="" />';
If I change it to:
PHP Code:
return '<center><img src="' . $link . '" border="1" alt="" /></center>';
it does end up centering every image, but for some reason I can't figure out it also adds additional line breaks every time the post is edited. I can't figure out why this is happening. Is there another way to automatically center all images or does it have to be done manually via the WYSIWYG?