Changed CGImageCreate arguments to take into account color conversions

Creating an image from a gray Mat resulted to the error: `CGImageCreate: invalid image bits/pixel: 8`.
So I think this was a mistake.