Modification/debug by Florent.
Correcting (/circumventing) the #define RGB24 bug in Lima/tango interaction.