Added an option for premultiplied alpha.