[ros-diffs] [janderwald] 23734: * optimize a few code paths * add error checking in various places * implement painting console image