Improved finding of raw image/ deleting of excess images