added additional hook for media data, updated hook for thumbnail generation