Fix node registration to remove texture errors

Not having the optional dependencies installed led to a series of dummy
images being created for no good reason.  Fixed so that optional nodes
are only registered when they should exist.