Some performance improvements when rendering images and using native session