Vid 1945

Lot's of refactoring for thumbnail controller and helper.