Move actor rendering into a function, so that it can be overridden by client code if needed