Use a picture to color bricks

Hello everyone, I am trying to use a picture to choose the color of each brick of a wall.
I explain; I have a brick wall (made in dynamo) and I would like to use a picture to choose if the brick are white or black. Is there a tool that enable to pick the color of a picture in Dynamo?
If my ask is not clear, I can make a little sketch.

Image.ReadFromFile should get you started.

Thx a lot