Use 0.0 as the scale parameter of UIGraphicsBeginImageContextWithOptions(), it will default to the device's scale