Added beginnings of thumbnail processing