added support for blend modes.