update style and add option for including resources (images etc) in the
style sheet