Trimming: set all trimbits to 15, only pixel which is used for determining Vtrim has trimbit 0. Replaced binary search in get_vtrim with for loop.