Better rendering

Uses proper Core Graphics to render the bar.
Also adds support for UIViewAutoresizing masks by making sure that drawRect is called when the frame changes.