When creating a 8-bits gray scale off-screen image by manually drawing in it, it always turn out to be a 24-bits one when saved to disk using: - (NSData *)representationUsingType:(NSBitmapImageFileType)storageType properties:(NSDictionary *)properties.