Graphic blanking algorithm