Initial work on thumbnail generation