add thumbnail read type function