Support thumbnailing, improve recent API.