Use the window format to get pixel masks
Merge conflict