remove (tentatively?) DestroyWindow()
mask unused pixels
add FLAG_RISING_EDGE and various utilities for trimming
use VCAL as provided by user (in high range)
trimming should not crash anymore