Simplified child image selection

Did you know you can use .getElementsByTagName() on any element? Here
I've refactored your code to use it instead of document.images. This
also allows us to scrap your hasTwoOffsetParents() function.