Fix #47
Fix UIGraphicsBeginImageContext #52
Fix #54