docs: def IsImage(self, filename):
  		"""Returns true if the filename has an image extension."""
  		mimetype =  mimetypes.guess_type(filename)[0]
  		if not mimetype:
  			return False
  		return mimetype.startswith("image/")