implemented thumbnail template