gray.py
x is an image.
rgb_to_gray(x)
gray_to_rgb(x)