support thumbnail rendering.