code cleanup; sync with SAAO timDIMM; use unsigned char image buffers