Index: main/waeup.sirp/trunk/src/waeup/sirp/image/browser/views.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/image/browser/views.py	(revision 5921)
+++ main/waeup.sirp/trunk/src/waeup/sirp/image/browser/views.py	(revision 5922)
@@ -22,4 +22,5 @@
 """Views for images and the like.
 """
+import mimetypes
 import grok
 from hurry.file.interfaces import IHurryFile
@@ -31,6 +32,11 @@
 
     def render(self):
-        self.response.setHeader('Content-Type', 'image/jpeg')
-        print dir(self.context)
-        print self.context.headers
+        """Output the data of context.
+
+        Beside this we set the output MIME type according to the
+        context's filename.
+        """
+        content_type = mimetypes.guess_type(self.context.filename.lower())
+        if content_type is not None:
+            self.response.setHeader('Content-Type', content_type)
         return self.context.data
