issue #369 by JrgenGNielsen: Init public://backgrounds directory

 if it doesnt exist or is not writable
Check_plain encodes special characters in a plain-text string for display as HTML. So it may not be needed here.