Add image lookup to history command