fixed implementation of a couple of functions, added nodetype for image