Thumb loader refactor

This is an attempt to improve the (video) thumb-loader's performance, which currently is considerably worse than it was in Eden (11.0).