Fixed the duplicate pictures being compared.