Use querySelectorAll if available

Instead of looking through the whole DOM for all div tags and then trimming those down to the ones with the "data-picture" attribute, this uses the browser-provided querySelectorAll function, which should be much faster.