Count image files, not image tags.

Rather than counting `img` tags, count the image files (via the `src` attribute).