blending: partly revert commit 21a9f06732746023da827e8061afec2dbab9aa15 with a better solution