Okay, I figured it out. It's the WYSIWYG editor TinyMCE. Every time an item was saved, it automatically added <p> tags around the images and a <style> to the text. Once I turned off TinyMCE, and removed the tags, everything worked fine. Thanks for the replies.