Added thumbnail support.