basic.py
x is an image.
num_comps(x)
get_comp(x,i)
set_comp(x,i,y)