very small utility script to convert an image to greyscale