add leavePremul for flash