Add alpha support (using generic code for now).