Support for mainImage.