This function converts the image to an RGB colour image with 24 bit colour depth (16.7 million colours).