added renderLayer field to functions and values

functions and values now have an attribute that houses the layer they
use to render images