Add support to compressed and uncompressed format in the sequence file, replace filename as key with proper metadata. And make thumbnail mapper more generic.