add support to extract and preview head images.