check image for duplicates