Keep search from returning the same image twice