Fix image conversion calls. This should work properly now.
Comments explain the conversion done in renderRoI.

Also fixed a bug in Node::isNodeUpstream where  we didn't use the right
member