title: changeing only pixels that are predominantly red, rather than removing the red component of all pixels
body: <p>Please I want to change only pixels that are  predominantly red, rather than removing the red component of all pixels. (I am using python 3.5) What might be wrong with my code. </p>
  
  <pre><code>from cImage import *
  def removeRed(imageFile):
      myimagewindow = ImageWin("Image Processing",1000,500)   
      oldimage = FileImage(imageFile)
      oldimage.draw(myimagewindow)
  
      width = oldimage.getWidth()
      height = oldimage.getHeight()
      newim = EmptyImage(width,height)       
  
      for col in range(width):
          for row in range(height):
              old_pixel = oldimage.getPixel(col,row)
              new_pixel = Pixel(0, old_pixel.getGreen(), old_pixel.getBlue())
              newim.setPixel(col, row, new_pixel)
      newim.setPosition(width+1,0)
      newim.draw(myimagewindow)
      myimagewindow.exitOnClick()
  removeRed("red.gif")
  </code></pre>