Add and fix 'convert_channel' and 'convert_color' functions.
Add `convert_color` and `convert_channel` methods to `Image` class.

The API is much more cumbersome but necessary in my opinion. We will see
later how to improve the API.