Rewritten it to use CGContext instead of image context in order to have antialiasing

credit to this repo:
https://github.com/mbcharbonneau/UIImage-Categories/blob/master/UIImage%
2BRoundedCorner.m