Handle device image lookup in a smarter way.