Added initializer to set nodeImage