Added inlineStyles flag. Allows disabling of inline styles