small tweak for inline layout, and a bitmap cache

stops flickering