painting visited pixels with gray