test script to convert colour image to greyscale and b&w