added media handling to content block, updated the API

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>