Uses CGImageGetBitsPerComponent