utility function get_random_hex_string, use it in make_thumbnails
use get_random_hex_string