Add option to use a stylesheet instead of inline styles.
Littles changes for the input of Andrew Kvalheim (thanks)