Add the jpg to exclude links. Join the fetched and to be fetched links and remove from the links retrieved.