code: def is_binary(self, subpath=None):
          
          mimetype = self.mimetype_for(subpath)
          return mimetype is not None and mimetype.startswith('image/')
docs: Gets whether the specified subpath is a supported binary file.