This function converts the current mask into an alpha channel. If there was already an alpha channel, it is replaced without further request.