Use hideInvalidPixels.