A Functional Explanation for the Effects of Visual Exposure on Preference