Restricted the selection for image divs further so that we only select divs that have a <a><img/></a> structure because we need to follow the link to download the image.