identifying if red is in pixel