add pic recognizer code