title: Combining RGB colours of pictures into one picture: Python, Cimpl
body: <p>The problem is to combine three RGB pictures to make an original picture. I need to take as an input three filtered pictures in RGB of the same picture. One red, one green, and one blue. I've tried to take every pixel in the image and add it to a tuple, which stores values of it.</p>
  
  <pre><code>from Cimpl import *
  
  red_image = load_image("red_image.jpg")
  blue_image = load_image("blue_image.jpg")
  green_image = load_image("green_image.jpg")
  
  new_image = copy(red_image)
  
  for pixel in new_image:
  
      x, y, (r, g, b) = pixel
  
  for bluePixel in blue_image:
      xBlue, yBlue, (rBlue, gBlue, bBlue) = bluePixel
      new_colour = create_color(r+rBlue,g+gBlue,b+bBlue)
      set_color (new_image, x, y, new_colour)
  
  
  for greenPixel in green_image:
      xGreen, yGreen, (rGreen, gGreen, bGreen) = greenPixel
      new_colour = create_color(r+rGreen,g+gGreen,b+bGreen)
      set_color (new_image, x, y, new_colour)    
  
  show(red_image)
  show(new_image)
  </code></pre>
  
  <p>I seem to get the same picture back again and not the "combined image" of red, blue and green filters( red_image.jpg because I use that as "new_image")</p>