Improved text flow, used cairoDevice for plots