Added an adapter for text and images.