moved make thumb function