Add flag to stop image lookup