Add support for setting background image in OS X

Add support for setting background image in OS X.

Recognition of OS name is based on $^O value.