I have added support for RGBF, RGBAF, RGB16, RGBA16 into ConvertTo32Bits and ConvertTo24Bits.
This is especially useful for converting a high dynamic range image to 24/32 bits without the need for the slow ToneMapping.
At least for me, tone mapping give floating point exceptions with some images and the results are often not so good.
The conversion from RGBF uses also a 2.2 gamma correction, because the images will look over-saturated/dark if no gamma correction is applied.
Also, I cleaned up the code to improve consistency and minimize it.