refactoring and updating thumbnail aditions