Below, the background was already black.

Upper = texture mask
Lower = Z_9 mask alone.

Mask “fit to image”, if not square!