mask added and fixed rgba