Using a grid and value to create an image