img = sensor.snapshot() img.to_grayscale()