Add fromFunction and pixel functions.