adapting thumbnailing function to the new naming convention