Added support for alpha masking
fix issue with not delivering previous values