Modified the background image handling to be OSX compatible.