Added RGBTOINT macro for converting rgb channel values to a 32-bit integer