Fixed iOS 5 fallback image drawing to properly manage CGContext