Added image targeting code.