Fixed a bug with trying to reference self.style before it was set.

I discovered a bug in the previous code where setDefaultShadowHeight
would not work correctly with circular style. This was a result of style
not actually being set yet.

Also cleared the deprecated method warnings.