Create mask and include it in the header of resulting image.