wrote greyscale and threshhold methods