Added tolerance for images with no src attribute

Fixes #55