media:thumbnail support

Minimal changes