Added support for alpha channel.