clean up usage of NULL definition
clean up comments, drop dependency on object in rtimag