Qhy12 support finalized and stable, color rendering and pixel
remapping look ok.
Some code cleanup
Fixed a memory leak when in color mode