Add ability to call a limited set of standard functions, e.g. min, max, sin.
Add support for defining functions on pixels rather than just sub pixels. For example, it should be possible to write a function that rotates the red, green and blue channels in an RGB image. (rgb(p.1, p.2, p.0) ?)