fixed bug in setting opacity and clear colour
removed unnecessary iostream includes