Image: fix bug in convertToFormatInternal
- Alpha component should never be mapped to an R, G or B components: the user must explicitly shuffle the channels.
- also make the code more readable