Wow, that's a lot of processing, compared to just serving them as static files.
http://mysqldump.azundris.com/archives/36-Serving-Images-From-A-Database.html
Someone should make this a 'sticky' or otherwise capture the link cos so many people refuse to be convinced that images in a db are a bad idea and explaining it to them just becomes a pain.