Add thumbnail factory class.