NXP-10456: move thumbnail computing logic into thumbnail adapter