Add support for attributes with images in

Does as the commit suggests.  Has support for attributes, including `srcset` syntax.  Down the line it could be improved to fire a callback when all relevant `srcset` images have loaded.
I've since bumped beyond this version, given thew new functionality, it should be a minor bump, e.g. `1.7`.