Thumbnail generation for sources, adds tests for thumbs.