Correctly assign image loading method for <img> elements
Add support for pseudoelements