Switch scale handling in opacity bg
Fix #56

There was a bug in the opacity slider where it would try to create a background when the window is nil, therefore attempting to create a graphics context of 0*0 size.

Close #57.