Fix iOS 7 rendering bugs caused by using renderInContext: