Function to compare patch to all source images