diff --git a/builder/htmlprocessor/strip_function.py b/builder/htmlprocessor/strip_function.py
index eaf95a8..a4468f4 100644
--- a/builder/htmlprocessor/strip_function.py
+++ b/builder/htmlprocessor/strip_function.py
@@ -71,7 +71,7 @@ def cleanUp(soup):
def changeImgSrcAttr(soup):
# Use s attribute instead of src for images
- for imgElement in soup.findAll("img"):
+ for imgElement in soup.select('img[src]'):
imgElement["s"] = imgElement["src"]
del imgElement["src"]