When you have have an image field on a content type, and use the Insert button to place it into the body, do you get a chance to theme it in Drupal 7? theme_image doesn't seem to get called, and I am not seeing anything the the API refernce. I know this is JS functionality on the edit page, but there could be ways to still theme it. Thanks.
Edit for clarification:
When you use Insert to get images into the body, just the image gets inserted and the theme system gets bypassed. If you use the image as a field, then all modules get a chance to theme it. This results in inconsistent image usage on a site.
For example, if I use an image as a field, the RDF module will tack on some metadata and my custom theme_image will do its thing. When I use Insert with the same image, just the plain image gets put in.
On previous projects, I have added some javascript to the theme to fix these discrepancies, but the code needs to be adjusted each time something changes with how images get themed. Ideally, I am searching for a method to allow images-as-fields and image-inserted-into-body to be themed the same way, without resorting to Javascript or manually editing the images in the body. If this isn't built-in functionality, I may try to patch the Insert module to allow it.