Added support for pre-multiplied alpha.