fix CGContext issues
Merge pull request #131 from DaidoujiChen/develop

避免一些 CGContext 衍生的問題