generate thumbs, small and big pictures