Changed color format to be BGRA. It seems that Firefox will ignore the masks.