Matching is performed using templates only. Images can be stored in the database for informative purposes or for compatibility reasons, but they are not used for matching.