add support for alpha blending; bug fixes.