re-worked search algorithm

Now finds every image, not just thumbnails.