Support scale size for CGContext when using `addImageToImage:atRect`

We need to use `UIGraphicsBeginImageContextWithOptions(size, NO, self.scale);` instead of `UIGraphicsBeginImageContext(size);` when handling CGContext.