This is happening when you use iPhoto as your mail client and not when you use Mail, right? Try this: launch iPhoto with the Option key held down and create a new, test library. Import some photos and check to see if the same problem persists. If it does make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home(
)/Library/ Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your
User/Home(
)/Library/Caches/com.apple.iPhoto folder.

Click to view full size
3 - launch iPhoto and try again.
NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
If you don't get the same corruption with your new library the problem lies with your old library. Post back with the results and we'll go from there.
OT