Improved alpha channel handling by using alpha channel provided by gradient.