add thumbnail and picture resize