PixelFlags should not set the EDGE flag unless the mask plane also has the EDGE bit set.