greyscale image is working
figuring out threshold