diff --git a/rinoh/float.py b/rinoh/float.py
index <HASH>..<HASH> 100644
--- a/rinoh/float.py
+++ b/rinoh/float.py
@@ -55,6 +55,11 @@ class ImageBase(Flowable):
         self.dpi = dpi
         self.rotate = rotate
 
+    @property
+    def filename(self):
+        if isinstance(self.filename_or_file, str):
+            return self.filename_or_file
+
     def initial_state(self, container):
          return ImageState(self)
Image.filename: for use in selectors