Add an image processing function.