CHDKLover posted code in the german forum some months ago, including a windows binary that applys the palette. don't know how i will do it yet, will look into both his code and yours. it will be a debug function of course, and not enabled at default.