Generalize the image preview adapter (using primary field)